.class final Lcom/ninesky/browser/by;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private synthetic a:Lcom/ninesky/browser/HistoryActivity;

.field private final synthetic b:Lcom/ninesky/widget/l;


# direct methods
.method constructor <init>(Lcom/ninesky/browser/HistoryActivity;Lcom/ninesky/widget/l;)V
    .locals 0

    iput-object p1, p0, Lcom/ninesky/browser/by;->a:Lcom/ninesky/browser/HistoryActivity;

    iput-object p2, p0, Lcom/ninesky/browser/by;->b:Lcom/ninesky/widget/l;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final onClick(Landroid/view/View;)V
    .locals 3

    iget-object v0, p0, Lcom/ninesky/browser/by;->b:Lcom/ninesky/widget/l;

    invoke-virtual {v0}, Lcom/ninesky/widget/l;->c()V

    iget-object v0, p0, Lcom/ninesky/browser/by;->a:Lcom/ninesky/browser/HistoryActivity;

    invoke-static {v0}, Lcom/ninesky/browser/HistoryActivity;->e(Lcom/ninesky/browser/HistoryActivity;)Ljava/lang/String;

    move-result-object v0

    :try_start_0
    const-string v1, "clipboard"

    invoke-static {v1}, Landroid/os/ServiceManager;->getService(Ljava/lang/String;)Landroid/os/IBinder;

    move-result-object v1

    invoke-static {v1}, Landroid/text/IClipboard$Stub;->asInterface(Landroid/os/IBinder;)Landroid/text/IClipboard;

    move-result-object v1

    if-eqz v1, :cond_0

    invoke-interface {v1, v0}, Landroid/text/IClipboard;->setClipboardText(Ljava/lang/CharSequence;)V
    :try_end_0
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    :goto_0
    iget-object v0, p0, Lcom/ninesky/browser/by;->a:Lcom/ninesky/browser/HistoryActivity;

    const-string v1, "History"

    const-string v2, "CopyLink"

    invoke-static {v0, v1, v2}, Lcom/mobclick/android/c;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    return-void

    :catch_0
    move-exception v0

    const-string v1, "browser"

    const-string v2, "Copy failed"

    invoke-static {v1, v2, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_0
.end method
